package com.zde.moriserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;
import org.dromara.mpe.processer.annotation.AutoDefine;
import org.dromara.mpe.processer.annotation.AutoMapper;
import org.dromara.mpe.processer.annotation.AutoRepository;

/**
 * 武器装备
 */
@AutoDefine // 新增
@AutoMapper // 新增
@AutoRepository // 新增
// @Data自动生成set get方法
@Data
@Table(value = "zde_weapon", comment = "武器装备")
public class WeaponEntity {
    @ColumnComment("id")
    @ColumnId(mode = IdType.AUTO, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private String id;

    @ColumnComment("名称")
    private String name;

    @ColumnComment("贴图")
    private String texture;

    @ColumnComment("描述")
    private String description;

    @ColumnComment("买价")
    private Integer buyPrice;

    @ColumnComment("回收价")
    private Integer sellPrice;

    /**
     * 类型 是否是有伤害的道具
     * 武器  0
     * 防具  1
     * 物品  2
     */
    @ColumnComment("类型")
    private Integer type;

    @ColumnComment("伤害")
    private Integer damage;

    @ColumnComment("防御")
    private Integer defense;

    // 品质
    @ColumnComment("品质")
    private String quality;

    // 爆率  千分比
    @ColumnComment("爆率")
    private Integer rate;

    // 是否售卖 是指商店是否售卖
    @ColumnComment("是否售卖")
    private Integer isSell;
}
